/**
 * @projectName: api-backend
 * @package: com.wangzz.project.config
 * @className: JsonConfig
 * @author: wangzz
 * @description: TODO
 * @date: 2024/3/18 17:33
 * @version: 1.0
 */

package com.wangzz.apisms.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: wangzz
 * @Description: 覆盖掉原生jdk的json序列化
 * @DateTime: 2024/3/18 17:33
 **/
@Configuration
public class JsonConfig {

    @Bean
    public MessageConverter jsonMessageConverter() {
        return new Jackson2JsonMessageConverter();
    }
}